import request from "@/api/request";
import qs from "qs";

export function initData(url, params) {
  return request({
    url: url + "?" + qs.stringify(params, { indices: false }),
    method: "get"
  });
}

export function download(url, params) {
  return request({
    url: url + "?" + qs.stringify(params, { indices: false }),
    method: "get",
    responseType: "blob"
  });
}
